package com.zeng.stpro.modules.app.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.List;

/**
 * @ClassName SysMenu
 * @Description TODO
 * @Author zhijun zeng at 22:38 2021/2/3
 * @Version 1.0
 **/
@TableName("sys_menu")
public class SysMenu {

    @TableId
    private Long menuId;
    private Long parentId;
    private String menuName;
    private String menuPath;
    private Integer menuType;
    private String permissionCode;
    private String deleteStatus;//删除标志（0代表存在 1代表删除）
    private String remark;
    private Integer orderNo;

    @TableField(fill = FieldFill.INSERT)
    private Date createAt;
    private String createByUserid;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;
    private String updateByUserid;

    @TableField(exist = false) //字据库不存在字段，但是必须使用。 Spring data jpa 或 Hibernate 使用 @Transient
    private List<SysMenu> list;//子菜单

    public List<SysMenu> getList() {
        return list;
    }

    public void setList(List<SysMenu> list) {
        this.list = list;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreateByUserid() {
        return createByUserid;
    }

    public void setCreateByUserid(String createByUserid) {
        this.createByUserid = createByUserid;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateByUserid() {
        return updateByUserid;
    }

    public void setUpdateByUserid(String updateByUserid) {
        this.updateByUserid = updateByUserid;
    }
}
